package com.lbw.facade;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/6/6 13:48
 */
public class DVDPlayer {

    // 使用单例模式
    private DVDPlayer() {
    }

    private final static DVDPlayer INSTANCE = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return INSTANCE;
    }

    public void on() {
        System.out.println("DVD ON");
    }

    public void off() {
        System.out.println("DVD OFF");
    }

    public void play() {
        System.out.println("DVD playing");
    }

    public void pause() {
        System.out.println("DVD pausing");
    }
}
